﻿@using Subfaculty.WebApplication.ViewModels
@model StudyGroupViewModel

@{
	ViewBag.Title = "История группы";
	Layout = "~/Views/Shared/_Layout.cshtml";
}

<fieldset class="main_fieldset">
<legend class="main_legend">История группы</legend>

Направление: @Model.StudyArea
<br/>
Год поступления: @Model.StudyYear
<br/>
<h3>История группы:</h3>
<br/>

@(Html.Telerik().Grid(Model.StudyGroupStates)
					.Name("GridStudyArea")
					.DataKeys(keys => keys.Add(c => c.Id))
					.Columns(columns =>
				         		{
									columns.Bound(o => o.Semester);
									columns.Bound(o => o.Name);
									columns.Bound(o => o.CountSubgroup);
									columns.Bound(o => o.CountStudent);
									columns.Template(c => "Активно");

								}
					)

					.Editable(editing => editing.Mode(GridEditMode.PopUp))
					.Scrollable(scrolling => scrolling.Enabled(true))
					.Scrollable(scrolling => scrolling.Height("600px"))
					.Sortable(sorting => sorting.Enabled(true))
					.Pageable(paging => paging.Enabled(true))
					.Filterable(filtering => filtering.Enabled(true))
					.Selectable(s => s.Enabled(true))
					.Groupable(grouping => grouping.Enabled(true))
					.Footer(true)
					)
			
</fieldset>